<?php
namespace Home\Controller;
use Think\Controller;

class CommonController extends Controller {
  public function _initialize(){
    if(empty(session('uid'))){
      $this->redirect('Login/index');
    }
  }

}
